package com.example.forum.services;

import com.example.forum.model.Message;

import java.util.List;

public interface IMessageService {
    //发送站内信息
    void create (Message message);

    //查询未读站内信数量
    Integer selectUnreadCount (Long userId);

    //根据接收者用户id查询所有站内信
    List<Message> selectByReceiveUserId (Long receiveUserId);

    //读取站内信
    Message selectById(Long id);

    //根据id更新站内信为已读
    void updateStateById(Long id,Byte state);

    //回复站内信
    void reply (Long repliedId, Message message);
}
